
import { element } from 'prop-types';
import ContainerLayout from '../../../layouts/container';
import ContainerPage from '@/pages/Container/index';
import MicroHome from '@/pages/micro/index';
import { Navigate } from 'react-router-dom';

// const MenusPage = lazy(() => import(`@/pages/container/menus`));

// const container = {
//   path: 'integration',
//   element: <ContainerLayout />,
//   children: [
//     {
//       index: true,
//       element: <Navigate to={'/integration/index'} replace />
//     },
//     {
//       path: 'index',
//       element: <ContainerPage />
//     },
// }

const container = {
  path: 'integration',
  children: [
    {
      index: true,
      element: <MicroHome />
    },
    {
      path: 'index',
      element: <Navigate to={'/integration/micro'} replace />
    },
    {
      path: 'micro',
      element: <MicroHome />
    },
  ]
}
export default container;
